package com.example.springblog.model;

import com.example.springblog.Utils.TimeUtil;
import lombok.Data;

import java.util.Date;
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private boolean isLoginUser;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;

    //重新更改日期的表达方式

    public String getCreateTime() {
        return TimeUtil.timeUtil(createTime);
    }
}
